checkbutton: Remove snapshot implementation
authorTimm Bäder <mail@baedert.org>
Mon, 20 Aug 2018 14:34:50 +0000 (16:34 +0200)
committerTimm Bäder <mail@baedert.org>
Sat, 25 Aug 2018 06:05:52 +0000 (08:05 +0200)
It just does when the default GtkWidget implementation does anyway:
snapshot all child widgets

gtk/gtkcheckbutton.c

index 083a0a7e2608efee83b32f60fca597fb1dc1cb0f..c91a4c8bd0d9f2b6e646388112c54997ff720687 100644 (file)
@@ -256,22 +256,6 @@ gtk_check_button_get_property (GObject      *object,
     }
 }
 
-static void
-gtk_check_button_snapshot (GtkWidget   *widget,
-                           GtkSnapshot *snapshot)
-{
-  GtkCheckButtonPrivate *priv = gtk_check_button_get_instance_private (GTK_CHECK_BUTTON (widget));
-  GtkWidget *child;
-
-  if (priv->draw_indicator)
-    gtk_widget_snapshot_child (widget, priv->indicator_widget, snapshot);
-
-  child = gtk_bin_get_child (GTK_BIN (widget));
-
-  if (child)
-    gtk_widget_snapshot_child (widget, child, snapshot);
-}
-
 static void
 gtk_check_button_direction_changed (GtkWidget        *widget,
                                     GtkTextDirection  previous_direction)
@@ -306,7 +290,6 @@ gtk_check_button_class_init (GtkCheckButtonClass *class)
 
   widget_class->measure = gtk_check_button_measure;
   widget_class->size_allocate = gtk_check_button_size_allocate;
-  widget_class->snapshot = gtk_check_button_snapshot;
   widget_class->state_flags_changed = gtk_check_button_state_flags_changed;
   widget_class->direction_changed = gtk_check_button_direction_changed;